package com.school.service;

import com.school.entity.Attendance;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;

public interface AttendanceService {
    List<Attendance> findAll();
    Optional<Attendance> findById(Long id);
    Attendance save(Attendance attendance);
    void deleteById(Long id);
    List<Attendance> findByClassId(Long classId);
    List<Attendance> findByClassIdAndDate(Long classId, LocalDate date);
    List<Attendance> findByStudentId(String studentId);
    List<Attendance> findByDate(LocalDate date);
    void saveAll(List<Attendance> list);
    void deleteByStudentId(String studentId);
}
